//package com.summer.service.impl;
//
//import com.summer.entity.SourceChannel;
//import com.summer.enums.StatusCodeEnum;
//import com.summer.mapper.SourceChannelMapper;
//import com.summer.service.SourceChannelService;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//
///**
// * 渠道Service
// */
//@Slf4j
//@Service
//public class SourceChannelServiceImpl implements SourceChannelService{
//
//    @Resource
//    private SourceChannelMapper sourceChannelMapper;
//
//    /**
//     * 根据编码查询渠道信息
//     * @param code
//     * @return
//     * @throws Exception
//     */
//    @Override
//    public SourceChannel findByCode(String code) throws Exception {
//        if (StringUtils.isBlank(code)){
//            throw new SummerException(StatusCodeEnum.CODE_NULL);
//        }
//        return sourceChannelMapper.findByCode(code);
//    }
//}
